package com.rk.kbk.dao;

import com.rk.kbk.model.WithdrawMesg;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by bilibili on 2017/3/13.
 */
public interface WithdrawMesgDao extends JpaRepository<WithdrawMesg, Long>,JpaSpecificationExecutor {
    List<WithdrawMesg> findByUserIdOrderByIdAsc(Long userId);
    /**
     * 根据银行卡号查找银行卡
     */
    WithdrawMesg findByBankNum(String bankNum);
}
